package shop.yaojianfeng.springlearning.section6.entity;

import java.io.Serializable;

/**
 * 简单账户表(Account)实体类
 *
 * @author 
 * @since 2022-04-27 16:35:23
 */
public class Account implements Serializable {
    private static final long serialVersionUID = 311682728253531188L;
    /**
     * 账户名字
     */
    private String name;
    /**
     * 账户金额
     */
    private int money;

    public Account(String name, int money) {
        this.name = name;
        this.money = money;
    }

    public Account() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("Account{");
        sb.append("name='").append(name).append('\'');
        sb.append(", money=").append(money);
        sb.append('}');
        return sb.toString();
    }
}

